<%@ Control Inherits="CVCommunity.Admin.Reset" %>
<%@ Register tagPrefix="forum" namespace="CVCommunity.Provider" assembly="CVCommunity.Provider"%>

<script>
function checksubmit(f)
{
	if (f.oldpassword.value == '')
	{
		f.oldpassword.focus();
		alert('请输入旧密码');
		return false;
	}
	if (f.newpassword.value == '')
	{
		f.newpassword.focus();
		alert('请输入新密码');
		return false;
	}
	if (f.newpassword.value != f.confirmpassword.value)
	{
		f.newpassword.focus();
		alert('新密码与确认密码不一致');
		return false;
	}
}

</script>
<form runat="server" onsubmit="return checksubmit(this);">
<div class="grid">
<table cellspacing="0" class="inner">
<tr class="forumno category">
<td colspan="2">重置密码</td>
</tr>
<tr class="forumtd" style="font-size:12px; font-weight:bold">
<td width="140">&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr class="forumtd" style="font-size:12px">
<td>旧密码</td>
<td><input type="password" name="oldpassword" class="input2" onblur="this.className='input2'" onfocus="this.className='input1'"/></td>
</tr>
<tr class="forumtd" style="font-size:12px">
<td>新密码</td>
<td><input type="password" name="newpassword" class="input2" onblur="this.className='input2'" onfocus="this.className='input1'"/></td>
</tr>
<tr class="forumtd" style="font-size:12px">
<td>确认新密码</td>
<td><input type="password" name="confirmpassword" class="input2" onblur="this.className='input2'" onfocus="this.className='input1'"/></td>
</tr>
<tr class="forumtd">
<td>&nbsp;</td>
<td><asp:button ID="btn" CssClass="button" runat="server" Text=" 修 改 " OnClick="Modify" /></td>
</tr>
</table>
</div>
</form>